import Cookie from 'js-cookie'

const TokenKey = 'TokenKey'
const LongliveToken = 'LongliveToken'

export function getToken(): string {
  return Cookie.get(TokenKey)
}

export function setToken(token: string): void {
  return Cookie.set(TokenKey, token)
}

export function getLonglivedToken(): string {
  return Cookie.get(LongliveToken)
}

export function setLonglivedToken(token: string): void {
  return Cookie.set(LongliveToken, token)
}

export function removeToken(): void {
  return Cookie.remove(TokenKey)
}
